package com.example.web.websocket.entity;

/**
 * 消息-发送对象
 * Created by YangGang on 2021/8/2 15:23。
 */
public class RelayObject {
    // 来源
    private String sourceKey;
    // 目标key
    private String toKey;
    // 信息JSON字符串
    private String data;

    public RelayObject(String sourceKey, String toKey, String data) {
        this.sourceKey = sourceKey;
        this.toKey = toKey;
        this.data = data;
    }

    public RelayObject(String sourceKey, String data) {
        this.sourceKey = sourceKey;
        this.data = data;
    }

    public String getSourceKey() {
        return sourceKey;
    }

    public void setSourceKey(String sourceKey) {
        this.sourceKey = sourceKey;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getToKey() {
        return toKey;
    }

    public void setToKey(String toKey) {
        this.toKey = toKey;
    }
}
